import request from '@/utils/request'

// 获取水厂下拉列表
export function getFactoryList() {
  return request({
    url: '/operation/web/operationPharmaceuticalAnalysis/factoryList',
    method: 'get'
  })
}

// 获取仓库药剂库存
export function getWarehousePharmaceuticalStock() {
  return request({
    url: '/operation/web/operationPharmaceuticalAnalysis/warehousePharmaceuticalStock',
    method: 'get'
  })
}

// 获取药耗占比数据
export function getMedicineConsumptionProportion() {
  return request({
    url: '/operation/web/operationPharmaceuticalAnalysis/medicineConsumptionProportion',
    method: 'get'
  })
}

// 获取库存阈值比数据
export function getStockThresholdRatio() {
  return request({
    url: '/operation/web/operationPharmaceuticalAnalysis/stockThresholdRatio',
    method: 'get'
  })
}

// 获取药耗曲线数据
export function getMedicineConsumptionCurve(params) {
  return request({
    url: '/operation/web/operationPharmaceuticalAnalysis/medicineConsumptionCurve',
    method: 'get',
    params
  })
}

// 获取智能预测数据
export function getIntelligentPrediction() {
  return request({
    url: '/operation/web/operationPharmaceuticalAnalysis/intelligentPrediction',
    method: 'get'
  })
}